package com.wpf.hf.feign;

import com.wpf.hf.entity.Result;
import com.wpf.hf.fallback.OrderFallback;
import com.wpf.hf.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "order",fallback = OrderFallback.class)
public interface OrderFeign {

    @GetMapping("order/findOrderList/{username}")
    public Result<List<Order>> findOrderList(@PathVariable("username") String username);
}
